/*
 * Copyright 2016-2019 yoara
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package yhao.infra.feature.payment.core.alipaynew.model.pay;

import org.apache.commons.lang3.time.DateFormatUtils;
import yhao.infra.feature.payment.core.support.NotifyUrl;

import java.util.Date;

/**
 * wap端支付封装类
 *
 * @author yoara
 */
public class AliPayWapModel extends AliPayModel {
    private String product_code;//产品销售码
    private String time_expire;//绝对超时时间

    public AliPayWapModel(String out_trade_no, String total_amount, String subject, Date empireTime, NotifyUrl url) {
        super(out_trade_no, total_amount, subject,url);
        this.product_code = "QUICK_WAP_PAY";
        this.time_expire = DateFormatUtils.format(empireTime, "yyyy-MM-dd HH:mm");
    }

    public String getProduct_code() {
        return product_code;
    }

    public String getTime_expire() {
        return time_expire;
    }
}